package cn.kgc.vue.commons;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author 课工场
 * @date 2024/4/10
 * @description String token    -> AuthenticationToken
 */
public class JWTToken implements AuthenticationToken {

    private String token;

    public JWTToken(String token){
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return this.token;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
